package com.cnhis.cloudhealth.clinical.clidoctor.cliregistration.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;

@SuppressWarnings("rawtypes")
@Repository
public class RegistDao extends BaseDao
{
    public Page getDoctorRegistrationType(Map<String, Object> param, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("CliRegistration.getDoctorRegistrationType", param, currPage, pageSize);
    }
    
    public Page getDepartmentsRegistrationType(int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("CliRegistration.getDepartmentsRegistrationType", null, currPage, pageSize);
    }
    
    public List setUIElements()
        throws Exception
    {
        return this.queryForList("CliRegistration.setUIElements", null);
    }
    
    public Page getItemsOfRegistrationType(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("CliRegistration.getItemsOfRegistrationType", map, currPage, pageSize);
    }
    
    public List registrationTypeDefaultChargeType(Map map)
        throws Exception
    {
        return this.queryForList("CliRegistration.RegistrationTypeDefaultChargeType", map);
    }
    
    public Page hospitalFeeRebate(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("CliRegistration.hospitalFeeRebate", map, currPage, pageSize);
    }
    
    public List settingDefaultType(Map map)
        throws Exception
    {
        return this.queryForList("CliRegistration.settingDefaultType", map);
    }
    
    public List patientFeeType(Map map)
        throws Exception
    {
        return this.queryForList("CliRegistration.patientFeeType", map);
    }
    
    public Page selectType(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("CliRegistration.selectType", map, currPage, pageSize);
    }
    
    public Page selectPatientType(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("CliRegistration.selectPatientType", map, currPage, pageSize);
    }
    
    public Page expandInfo(int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("CliRegistration.expandInfo", null, currPage, pageSize);
    }
    
    public Object queryBck1BySexAndBck01(Map<String, Object> params)
        throws Exception
    {
        return this.queryToObject("CliRegistration.queryBck1BySexAndBck01", params);
    }
    
    public Object queryVac1ByConditions(Map<String, Object> params)
        throws Exception
    {
        return this.queryToObject("CliRegistration.queryVac1ByConditions", params);
    }
    
    public Object queryBBY1ByConditions(Map<String, Object> params)
        throws Exception
    {
        return this.queryToObject("CliRegistration.queryBBY1ByConditions", params);
    }
    
    public void deleteBBY1ByConditions(Map<String, Object> params)
        throws Exception
    {
        this.delete("CliRegistration.deleteBBY1ByConditions", params);
    }
    
    public Object queryVac71(Map<String, Object> params)
        throws Exception
    {
        return this.queryToObject("CliRegistration.queryVac71", params);
    }
    
    public Object queryVaa03(Map<String, Object> params)
        throws Exception
    {
        return this.queryToObject("CliRegistration.queryVaa03", params);
    }
    
    public List queryVaa1(Map<String, Object> params)
        throws Exception
    {
        return this.queryForList("CliRegistration.queryVaa1", params);
    }
    
    public void insertVaa1(Map<String, Object> params)
        throws Exception
    {
        this.insert("CliRegistration.insertVaa1", params);
    }
    
    public void updateVAA1(Map<String, Object> params)
        throws Exception
    {
        this.update("CliRegistration.updateVAA1", params);
        
    }
    
    public void insertVAC1(Map<String, Object> params)
        throws Exception
    {
        this.insert("CliRegistration.insertVAC1", params);
    }
    
    public void insertVCJ1(Map<String, Object> params)
        throws Exception
    {
        this.insert("CliRegistration.insertVCJ1", params);
    }
    
    public void insertVAI1(Map<String, Object> params)
        throws Exception
    {
        this.insert("CliRegistration.insertVAI1", params);
    }
    
    public void insertVAJ1(Map<String, Object> params)
        throws Exception
    {
        this.insert("CliRegistration.insertVAJ1", params);
    }
    
    public List getABWList()
        throws Exception
    {
        return this.queryForList("CliRegistration.getABWList", null);
    }

    public void updateVac1AndVaa1(Map param1) throws Exception
    {
        this.update("CliRegistration.updateVac1AndVaa1", param1);
    }

    public void insertZae1_name(Map param1) throws Exception
    {
        this.update("CliRegistration.insertZae1_name", param1);
    }

    public void insertZae1_xinyong(Map param1) throws Exception
    {
        this.update("CliRegistration.insertZae1_xinyong", param1);
    }

    @SuppressWarnings("unchecked")
    public Map<String, Object> queryVcj1(Map param1) throws Exception
    {
        Object obj = this.queryForExtObject("CliRegistration.queryVcj1", param1);
        if(obj!=null)
        {
            return (Map<String, Object>)obj;
        }
        return null;
    }

    public void updateVcj1(Map param1) throws Exception
    {
        this.update("CliRegistration.updateVcj1", param1);
    }

    public void insertVcj1(Map param1) throws Exception
    {
        this.update("CliRegistration.insertVcj1", param1);
    }

    public List queryVbn1List(Map param1) throws Exception
    {
        return this.queryForList("CliRegistration.queryVbn1List", param1);
    }

    public void updateVbn1(Map param1) throws Exception
    {
        this.update("CliRegistration.updateVbn1", param1);
    }

    public void insertVbn1(Map param1) throws Exception
    {
        this.update("CliRegistration.insertVbn1", param1);
    }

    public void updateVal1(Map param) throws Exception
    {
        this.update("CliRegistration.updateVal1", param);
    }

    public void updateVao1(Map param) throws Exception
    {
        this.update("CliRegistration.updateVao1", param);
    }

    public void deleteVao1(Map param) throws Exception
    {
        this.delete("CliRegistration.deleteVao1", param);
    }

    public void insertVao1(Map param) throws Exception
    {
        this.update("CliRegistration.insertVao1", param);
    }

    public void insertZiu1(Map param) throws Exception
    {
        this.update("CliRegistration.insertZiu1", param);
    }

    public Map<String, Object> getVac71(Map map1)
    {
        return getSqlSession().selectOne("CliRegistration.getVac71", map1);
    }

}
